/*
 * Copyright (C) 2012 JiangHongTiao
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package sk.lieskove.jianghongtiao.paris.core;

import com.google.code.linkedinapi.client.LinkedInApiClient;
import org.apache.log4j.Logger;
import sk.lieskove.jianghongtiao.common.utils.PropertiesUtils;
import sk.lieskove.jianghongtiao.websearch.service.SearchQuery;
import sk.lieskove.jianghongtiao.websearch.service.SearchQueryImpl;
import sk.lieskove.jianghongtiao.websearch.service.linkedin.LinkedInSearch;

/**
 *
 * @author xjuraj
 */
public class LinkedinApi {
    
    private transient Logger log = Logger.getLogger(LinkedinApi.class);
    private transient PropertiesUtils pu = new PropertiesUtils(LinkedinApi.class);

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        LinkedInSearch lis = new LinkedInSearch();
        SearchQuery sq = new SearchQueryImpl();
        sq.addWord("Monika");
        LinkedInApiClient client = lis.getClient();
        System.out.println("Name: "+
                client.getProfileForCurrentUser().getLastName());
        
    }
}
